package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName exam_exam_detail
 */
@TableName(value ="exam_exam_detail")
public class ExamExamDetail implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer userid;

    /**
     * 考试Id
     */
    private Integer examid;

    /**
     * 试题信息
     */
    private String questioninfo;

    /**
     * 是否提交 1提交 2未提交
     */
    private Integer issubmit;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户id
     */
    public Integer getUserid() {
        return userid;
    }

    /**
     * 用户id
     */
    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    /**
     * 考试Id
     */
    public Integer getExamid() {
        return examid;
    }

    /**
     * 考试Id
     */
    public void setExamid(Integer examid) {
        this.examid = examid;
    }

    /**
     * 试题信息
     */
    public String getQuestioninfo() {
        return questioninfo;
    }

    /**
     * 试题信息
     */
    public void setQuestioninfo(String questioninfo) {
        this.questioninfo = questioninfo;
    }

    /**
     * 是否提交 1提交 2未提交
     */
    public Integer getIssubmit() {
        return issubmit;
    }

    /**
     * 是否提交 1提交 2未提交
     */
    public void setIssubmit(Integer issubmit) {
        this.issubmit = issubmit;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ExamExamDetail other = (ExamExamDetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getExamid() == null ? other.getExamid() == null : this.getExamid().equals(other.getExamid()))
            && (this.getQuestioninfo() == null ? other.getQuestioninfo() == null : this.getQuestioninfo().equals(other.getQuestioninfo()))
            && (this.getIssubmit() == null ? other.getIssubmit() == null : this.getIssubmit().equals(other.getIssubmit()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getExamid() == null) ? 0 : getExamid().hashCode());
        result = prime * result + ((getQuestioninfo() == null) ? 0 : getQuestioninfo().hashCode());
        result = prime * result + ((getIssubmit() == null) ? 0 : getIssubmit().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userid=").append(userid);
        sb.append(", examid=").append(examid);
        sb.append(", questioninfo=").append(questioninfo);
        sb.append(", issubmit=").append(issubmit);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}